import { http } from '@/utils/http'

/**
 * 查询文件的路径
 * @param {string} path
 * @returns {Promise<{path:string,url:string}>}
 */
export const getPreSignedDownloadUrlAPI = async (path) => {
  const data = new FormData()
  data.append('path', path)
  return await http({
    url: `/oss/preSigned/download`,
    method: 'post',
    data,
  })
}
